<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录页面</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f5f5f5;
    }

    form {
      width: 300px;
      margin: 0 auto;
      padding: 20px;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

  .form-title {
      text-align: center;
      margin-bottom: 20px;
    }

    input[type="text"],
    input[type="password"] {
      width: 100%;
      padding: 10px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 3px;
    }

    input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #4CAF50;
      color: #fff;
      border: none;
      border-radius: 3px;
      cursor: pointer;
    }

    input[type="submit"]:hover {
      background-color: #45a049;
    }

    p {
      text-align: center;
      margin-top: 20px;
    }

    a {
      color: #4CAF50;
    }
  </style>
</head>

<body>
  <form action="/login" method="post">
    <h2 class="form-title">登录</h2>
    <input type="text" id="username" name="username" placeholder="用户名" required>
    <input type="password" id="password" name="password" placeholder="密码" required>
    <input type="submit" value="登录">
    <!-- <p>没有账号？<a href="#">注册</a></p> -->
  </form>
{% if error_message %}
<script>showAlert('{{ error_message }}');</script>
{% endif %}
</body>

</html>